package mse.eai.jbpm.confirmFriendshipRequest;

import mse.eai.esb.ScheduledDailyDigestMessageComposer;

import org.jboss.logging.Logger;
import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;

public class PrepareFrienshipConfirmationNotification implements ActionHandler {

	
	private static final Logger log = Logger
	.getLogger(PrepareFrienshipConfirmationNotification.class);
	
	@Override
	public void execute(ExecutionContext context) throws Exception {

		log.info ("Executing ---------->");
		
		context.setVariable("subject", "PhaseBook Frienship Request Confirmation");
		context.setVariable("message", "Your friendship request was accepted");
		//context.setVariable("destUserId", new Integer((Integer) context.getVariable("destUserId")));

		log.info("Set in context: " + "subject  = " + "PhaseBook Frienship Request Confirmation");
		log.info("Set in context: " + "message  = " + "Your friendship request was accepted");
		
		log.info ("<--------------- Done");
		
		context.leaveNode();
		
		
	}

}
